import request from '@/utils/request';

/* 获取负库存报表数据 */
export const getNegativeStockReport = data =>
  request({
    url: '/api/negativeStock/report/getNegativeStockReport',
    method: 'post',
    data: data
  });

/* 导出负库存报表数据 */
export const exportNegativeStockReport = data =>
  request({
    url: '/api/negativeStock/report/exportNegativeStockReport',
    method: 'post',
    responseType: 'blob',
    data: data
  });

/* 获取负库存报表商品版 */
export const getNegativeStockCom = data =>
  request({
    url: '/api/negativeStock/report/getNegativeStockCom',
    method: 'post',
    data: data
  });

/* 导出负库存报表商品版 */
export const exportNegativeStockCom = data =>
  request({
    url: '/api/negativeStock/report/exportNegativeStockCom',
    method: 'post',
    responseType: 'blob',
    data: data
  });

/* 获取负库存报表详情版 */
export const getNegativeStockDetail = data =>
  request({
    url: '/api/negativeStock/report/getNegativeStockDetail',
    method: 'post',
    data: data
  });

/* 导出负库存报表详情版 */
export const exportNegativeStockDetail = data =>
  request({
    url: '/api/negativeStock/report/exportNegativeStockDetail',
    method: 'post',
    responseType: 'blob',
    data: data
  });
